﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="PageEdit_Test.aspx.cs"
    Inherits="PageEdit_PageEdit_Test" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script language="vbscript">
	<!--
	Sub SaveFile(byval ContentHtml,byval ContentText,byval wordCount)
		If Len(document.all("txtName").value) = 0 Then
			Msgbox "请输入知识标题！",16,"知识库"
			document.all("txtName").focus()
		Else
			lngMsg = msgbox("确实要添加新知识吗？",36,"知识库")
			If lngMsg = 6 Then
				frmPage.txtContentHtml.value = ContentHtml
				frmPage.txtContentText.value = ContentText
				frmPage.submit()
			End If
		End If
	End Sub
	-->
    </script>

</head>
<body>
    <form id="frmPage" method="post" runat="server">
        标题：<input type="text" name="txtName" size="40"><input type="button" value="　提交　"
            onclick="vbscript:ifrPageEdit.SaveFile()"><br />
        <iframe name="ifrPageEdit" width="100%" height="400" src="../PageEdit/PageEdit.htm">
        </iframe>
        <input type="hidden" name="txtContentHtml"><input type="hidden" name="txtContentText">
    </form>
</body>
</html>
